import 'package:json_annotation/json_annotation.dart';
part 'para_product.g.dart';
@JsonSerializable()
class ParamProduct extends Object{


  ///品牌id
  String? brand;

  ///商品分类
  String? cat;

  ///优惠券id
  String? couponId;

  ///商品类型：new，hot，best
  String? intro;

  ///搜索关键词
  String? keyword;

  ///最高价格
  String? max;

  ///最低价格
  String? min;

  ///排序方式
  String? order;

  ///分页页码
  int? page;

  ///店铺分类ID
  String? shopCategoryId;

  ///店铺id
  String? shopId;

  ///页数
  int? size;

  ///排序字段
  String? sort;

  ParamProduct({
    this.brand,
    this.cat,
    this.couponId,
    this.intro,
    this.page = 0,
    this.size = 10,
    this.max,
    this.min,
    this.keyword,
    this.order,
    this.shopCategoryId,
    this.shopId,
    this.sort
  }
  );

  factory ParamProduct.fromJson(Map<String, dynamic> srcJson) => _$ParamProductFromJson(srcJson);

  Map<String, dynamic> toJson() => _$ParamProductToJson(this);
}